package IO;

import java.io.File;
import java.io.IOException;

public class IODemo2 {
    public static void main(String[] args) throws IOException {
        File file = new File("./zzz.txt");
        System.out.println(file.getAbsoluteFile());
        System.out.println(file.exists());//普通文件
        System.out.println(file.isFile());//是文件
        System.out.println(file.isDirectory());//不是目录
        System.out.println(file.createNewFile());
    }
}
